'''
Created on 2011-8-26

@author: Administrator
'''
s2c_begin,\
s2c_ping_request,\
s2c_start_task,\
s2c_terminated_task,\
s2c_client_exits,\
s2c_config_request,\
s2c_end = range(7)


class S2CPingRequest():
    id  = s2c_ping_request

class S2CStartTask():
    def __init__(self):
        self.id = s2c_start_task
        self.templateid = None
        self.taskid = None
        self.subid = None
        self.type = None
        self.info = None
        self.args = None

class S2CTerminatedTask():
    def __init__(self, taskid, subid):
        self.id = s2c_terminated_task
        self.taskid = taskid
        self.subid = subid

class S2CClientExits():
    id  = s2c_client_exits
    message = ""

class S2CConfigRequest():
    id  = s2c_config_request
    def __init__(self):
        self.ftpip = None
        self.ftpport = None
        self.ftpuser = None
        self.ftppassword = None
        self.svnpath  = None
        self.svnuser = None
        self.svnpassword = None
